#ifndef SERIAL_H_INCLUDED
#define SERIAL_H_INCLUDED

#define BUFFER_LENGTH 50

#ifndef __MCU_DEBUG__
#define SERIAL_TH1 253
#else
#define SERIAL_TH1 244
#endif

void initSerial();
void SendData(unsigned char);
unsigned char RecvData();
//unsigned char CheckUpdate();
void serailInterrupt() __interrupt 4;


#endif // SERIAL_H_INCLUDED
